package com.lhc.nacosprovider.controller;

import com.lhc.nacosprovider.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author liuchaoqun
 * @date 2022/6/18
 * @Description 订单
 */
@RestController
@RequestMapping("/order")
public class OrderController {
    @Autowired
    MenuService menuService;

    @GetMapping("/{id}")
    public String create(@PathVariable Long id) {
        return menuService.create(id);
    }
}
